import requests

url='https://c-ssl.duitang.com/uploads/blog/202108/07/20210807154919_e1cc8.thumb.400_0.jpg'

# #发送请求
response = requests.get(url)


#保存到本地
with open("chen.jpg","wb") as f:
    f.write(response.content)